package com.soft.javase.day01.review;

/**
 * @author yzh
 * @desc TODO
 * @date 2025/4/15
 */
public class ObjectOrientedProgramming {
    public static void main(String[] args) {

        Animal animal = new Animal("旺财", 5);
        System.out.println("名字："+animal.getName()+" 年龄："+animal.getAge());

        Animal animal1 = new Animal();
        animal1.setName("大黄");
        animal1.setAge(3);
        System.out.println("名字："+animal1.getName()+" 年龄："+animal1.getAge());

    }
}
